import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 直接引入文件即可，上面是默认导入
import './elementUI/element'

import VueQuillEditor from 'vue-quill-editor'

// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import dayjs from 'dayjs'

Vue.prototype.$formatDate = (dateObj) => {
  // hh表示会分为上午和下午，HH表示24小时制
  return dayjs(dateObj).format('YYYY-MM-DD hh:mm:ss')
}
Vue.use(VueQuillEditor)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
